package com.cabal.common.errcode;


/**
 * 商户错误码
 * @author stogel
 * @date 2019/8/2
 * @since JDK8
 */
public enum TenantErrCodeEnum{
    /** 参数异常*/
    PARAM_BAD("112101", "param error"),

    /** 查询结果为空*/
    RESULT_ISNULL("112102", "result is null"),

    /** domain存在 */
    DOMAIN_EXISTS("112103", "domain already exists"),

    /** domain 相同*/
    DOMAIN_SAME("112104", "domain is same"),

    /** 角色绑定商户*/
    DELETE_BANDING("112105", "The role has been associated with tenant who are not allowed to delete");

    /** 错误code */
    private String code;
    /** 错误描述 */
    private String value;

    /** 构造函数*/
    TenantErrCodeEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return this.code;
    }

    public String getValue() {
        return this.value;
    }
}
